'''
Created on Sep 20, 2009

@author: jafd
'''

from sql.expressions import *

print Literal('test')
print Literal("John's Pizza")
print Literal(12)
print Literal(17.980)
print Literal(1.234E-6)
print AttributeName('testtable')
print AttributeName('testtable', 'testfield')
print ExpressionList(AttributeName('field1'),  AttributeName('products', 'name'), Literal('Value1'))

print Function('Now', None)
print Function('uppercase', 'SomeValue')

print Function('random', None) + Literal(2) 
print ExpressionGroup(Function('random', AttributeName('mytable', 'myfield')) * AttributeName('test'))

print ExpressionList(ExpressionGroup(ExpressionList(1, 2, 3)), 4, 5, Function('rand')+2+3-Function('now'))
